﻿<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="0" />
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/lib/html5shiv.js"></script>
<script type="text/javascript" src="/lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/style.css" />
	<link rel="stylesheet" href="/layui.css" media="all">
<!--[if IE 6]>
<script type="text/javascript" src="/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>订阅列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 订阅管理 </nav>
<div class="page-container">
	<div class="cl pd-5 bg-1 bk-gray mt-20" style="padding: 27px 5px 5px 5px;">
		<div  style=" margin:auto; width:380px; ">
			<form class="layui-form layui-form-pane" action="/querySubscribeByUname" style="height: 38px;">
				<div style="float: left">
					<label class="layui-form-label">用户名</label>
					<div class="layui-input-inline">
						<input type="text" name="uname" id="uname" th:value="${uname}" lay-verify="required" placeholder="请输入你要查询的用户" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item"  style="float:left;clear: none;margin-bottom:0">
					<div id="button_relative">
						<button class="layui-btn" lay-submit lay-filter="aa">查询</button>
					</div>
				</div>
			</form>
		</div>
		<div style="height: 22px; text-align: right;">共有数据：<strong th:text="${total}"></strong> 条</div>
	</div>
	<div class="mt-20">

		<table id="tab" class="table table-border table-bordered table-bg table-hover  table-responsive">
			<thead>
				<tr class="text-c">
					<th>ID</th>
					<th >用户名</th>
					<th>订阅栏目</th>
					<th>订阅时间</th>
					<th >模型名称</th>
				</tr>
			</thead>
			<tbody id="tbody">

				<tr th:each="subscribeTemplateData:${subscribeTemplateDataList}" class="text-c">
					<td  th:text="${subscribeTemplateData.sub_id}"></td>
					<td  th:text="${subscribeTemplateData.user.uname}"></td>
					<td  th:text="${subscribeTemplateData.program.program_name}"></td>
					<td  th:text="${subscribeTemplateData.formatTime}"></td>
					<td  th:switch="${subscribeTemplateData.program.program_id}">
						<span  th:case="1" >暂无模型</span>
						<span  th:case="2" th:text="${subscribeTemplateData.coin.cname}"></span>
						<span th:case="3" th:text="${subscribeTemplateData.exchange.ename}"></span>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
</body>
</html>